package com.gues.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.gues.eneity.Permission;
import com.gues.mapper.PermissionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@SuppressWarnings("all")
public class PermissionService {

    @Autowired
    PermissionMapper permissionMapper;

    public Permission selectByPermissionId(Integer permissionId) {
        QueryWrapper<Permission> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("permission_id", permissionId);
        return permissionMapper.selectOne(queryWrapper);
    }
}
